/*
 * To change this license header, choose License Headers in Project Properties.
 * To change this template file, choose Tools | Templates
 * and open the template in the editor.
 */
package net.ytbolg.mcxa.gui;

/**
 *
 * @author Ytong
 */
public class DownloadSrc {

    public static String getLibrariesURL(String LibPathWithoutSep) {
        return "https://libraries.minecraft.net/" + LibPathWithoutSep;

    }

    public static String getMcJarDownloadURL(String version) {
        return "http://bmclapi.bangbang93.com/versions/" + version + "/" + version + ".jar";
    }

    public static String getMcJsonDownloadURL(String version) {
        return "http://bmclapi.bangbang93.com/versions/" + version + "/" + version + ".json";

    }

    public static String getAssetsURL() {
        return "http://bmclapi.bangbang93.com/assets/";
    }

    public static String getForgeURL(String MCversion, String ForgeVersion) {
        return "http://bmclapi.bangbang93.com/forge/getforge/" + MCversion + "/" + ForgeVersion;

    }

    public static String getForgeListURL() {
        return "http://bmclapi.bangbang93.com/forge/versionlist";

    }

    public static String getForgeLegacyListURL() {
        return "http://bmclapi.bangbang93.com/forge/legacylist";

    }

    public static String getMCListURL() {
        return "http://bmclapi.bangbang93.com/versions/versions.json";

    }

    public static String getIndexesURL(String ver) {
        if (ver.equals("legacy")) {
            return "https://s3.amazonaws.com/Minecraft.Download/indexes/" + ver + ".json";
        } else {
            return "http://bmclapi.bangbang93.com/indexes/" + ver + ".json";
        }
//    
    }
}
